/**
 * 
 */
package net.toocruel.iqismart.service.core;

import net.toocruel.iqismart.entity.core.Message;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 角色服务
 * 
 * @author toocruel
 *
 */
public interface MessageService {

 void send(Long fromUserId,Long toUserId,String content);
 void read(Long messageId);
 void read(Long[] messageIds);

    List<Message> findByToUser(Long id);

    Page<Message> findALl(Long id, PageRequest pageRequest);
}
